package com.ververica.cdc.guass.source.kafka.data;

import java.util.HashMap;

public class ChangeEvent {

    private long scn;
    private long lsn;
    private short dn;
    private int seq;
    private String txTime;
    private String msgTime;
    private String opType;
    private String table;
    private HashMap<String, Object> data;
    private HashMap<String, Object> keys;

    // Getter 和 Setter 方法
    public long getScn() {
        return scn;
    }

    public void setScn(long scn) {
        this.scn = scn;
    }

    public long getLsn() {
        return lsn;
    }

    public void setLsn(long lsn) {
        this.lsn = lsn;
    }

    public short getDn() {
        return dn;
    }

    public void setDn(short dn) {
        this.dn = dn;
    }

    public int getSeq() {
        return seq;
    }

    public void setSeq(int seq) {
        this.seq = seq;
    }

    public String getTxTime() {
        return txTime;
    }

    public void setTxTime(String txTime) {
        this.txTime = txTime;
    }

    public String getMsgTime() {
        return msgTime;
    }

    public void setMsgTime(String msgTime) {
        this.msgTime = msgTime;
    }

    public String getOpType() {
        return opType;
    }

    public void setOpType(String opType) {
        this.opType = opType;
    }

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public HashMap<String, Object> getData() {
        return data;
    }

    public void setData(HashMap<String, Object> data) {
        this.data = data;
    }

    public HashMap<String, Object> getKeys() {
        return keys;
    }

    public void setKeys(HashMap<String, Object> keys) {
        this.keys = keys;
    }

    // toString 方法
    @Override
    public String toString() {
        return "ChangeEvent{" +
                "scn=" + scn +
                ", lsn=" + lsn +
                ", dn=" + dn +
                ", seq=" + seq +
                ", txTime='" + txTime + '\'' +
                ", msgTime='" + msgTime + '\'' +
                ", opType='" + opType + '\'' +
                ", table='" + table + '\'' +
                ", data=" + data +
                ", keys=" + keys +
                '}';
    }
}